/**
* @author:kellen
* @contact:xiekellen@hotmail.com
* @company:achivo-gz
* @created on:
* @modified on:
*/

package com.sasis.service.impl;

import java.util.List;

import com.sasis.service.impl.BaseManager;
import com.sasis.model.VipServiceFood;
import com.sasis.dao.VipServiceFoodDao;
import com.sasis.service.VipServiceFoodManager;

import com.sasis.util.PageList;
import com.sasis.util.PageRequest;

public class VipServiceFoodManagerImpl extends BaseManager implements VipServiceFoodManager {
    private VipServiceFoodDao dao;

    /**
     * Set the Dao for communication with the data layer.
     * @param dao
     */
    public void setVipServiceFoodDao(VipServiceFoodDao dao) {
        this.dao = dao;
    }

    /**
     * @see com.sasis.service.VipServiceFoodManager#getVipServiceFoods(com.sasis.model.VipServiceFood)
     */
    public List getVipServiceFoods(final VipServiceFood vipServiceFood) {
        return dao.getVipServiceFoods(vipServiceFood);
    }

    /**
     * @see com.sasis.service.VipServiceFoodManager#getVipServiceFood(String id)
     */
    public VipServiceFood getVipServiceFood(final String id) {
        return dao.getVipServiceFood(new Integer(id));
    }

    /**
     * @see com.sasis.service.VipServiceFoodManager#saveVipServiceFood(VipServiceFood vipServiceFood)
     */
    public int saveVipServiceFood(VipServiceFood vipServiceFood) {
        return dao.saveVipServiceFood(vipServiceFood); 
    }

    /**
     * @see com.sasis.service.VipServiceFoodManager#removeVipServiceFood(String id)
     */
    public void removeVipServiceFood(VipServiceFood vipServiceFood) {
        dao.removeVipServiceFood( vipServiceFood);
    }
    public PageList queryForPageList(String listStatementId,  
    		Object parameterObject, PageRequest pageRequest){
	return dao.queryForPageList(listStatementId,   parameterObject, pageRequest);
    }
}
